package com.handpay.zztong.hp.withdraw.bean;

import android.os.Parcel;

import com.handpay.zztong.hp.bean.ResponseBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by fplei on 2017/5/3.
 */

public class QueryWithdrawRecordBean extends ResponseBean {

    /**
     * applyAmounts : 29800
     * list : [{"rwdMoney":"10000","rwdStatus":"02","displayOutSideStatus":"02","rwdTime":"20170605160116","wdMoney":"9990","rwdDes":"提现中"},{"rwdMoney":"5000","rwdStatus":"02","displayOutSideStatus":"02","rwdTime":"20170605152453","wdMoney":"4995","rwdDes":"提现中"},{"rwdMoney":"2000","rwdStatus":"02","displayOutSideStatus":"02","rwdTime":"20170605152251","wdMoney":"1998","rwdDes":"提现中"},{"rwdMoney":"6800","rwdStatus":"02","displayOutSideStatus":"02","rwdTime":"20170605145836","wdMoney":"6793","rwdDes":"提现中"},{"rwdMoney":"6000","rwdStatus":"02","displayOutSideStatus":"02","rwdTime":"20170605145353","wdMoney":"5994","rwdDes":"提现中"}]
     * amounts : 0
     * items : 5
     * totalPages : 1
     * pageNo : 1
     */

    private String applyAmounts;
    private String amounts;
    private String items;
    private String totalPages;
    private String pageNo;
    private List<WithdrawBody> list;

    public String getApplyAmounts() {
        return applyAmounts;
    }

    public void setApplyAmounts(String applyAmounts) {
        this.applyAmounts = applyAmounts;
    }

    public String getAmounts() {
        return amounts;
    }

    public void setAmounts(String amounts) {
        this.amounts = amounts;
    }

    public String getItems() {
        return items;
    }

    public void setItems(String items) {
        this.items = items;
    }

    public String getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(String totalPages) {
        this.totalPages = totalPages;
    }

    public String getPageNo() {
        return pageNo;
    }

    public void setPageNo(String pageNo) {
        this.pageNo = pageNo;
    }

    public List<WithdrawBody> getList() {
        return list;
    }

    public void setList(List<WithdrawBody> list) {
        this.list = list;
    }

    public static class WithdrawBody implements android.os.Parcelable {
        /**
         * rwdMoney : 10000
         * rwdStatus : 02
         * displayOutSideStatus : 02
         * rwdTime : 20170605160116
         * wdMoney : 9990
         * rwdDes : 提现中
         */

        private String rwdMoney;
        private String rwdStatus;
        private String displayOutSideStatus;
        private String rwdTime;
        private String wdMoney;
        private String rwdDes;

        public String getRwdMoney() {
            return rwdMoney;
        }

        public void setRwdMoney(String rwdMoney) {
            this.rwdMoney = rwdMoney;
        }

        public String getRwdStatus() {
            return rwdStatus;
        }

        public void setRwdStatus(String rwdStatus) {
            this.rwdStatus = rwdStatus;
        }

        public String getDisplayOutSideStatus() {
            return displayOutSideStatus;
        }

        public void setDisplayOutSideStatus(String displayOutSideStatus) {
            this.displayOutSideStatus = displayOutSideStatus;
        }

        public String getRwdTime() {
            return rwdTime;
        }

        public void setRwdTime(String rwdTime) {
            this.rwdTime = rwdTime;
        }

        public String getWdMoney() {
            return wdMoney;
        }

        public void setWdMoney(String wdMoney) {
            this.wdMoney = wdMoney;
        }

        public String getRwdDes() {
            return rwdDes;
        }

        public void setRwdDes(String rwdDes) {
            this.rwdDes = rwdDes;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.rwdMoney);
            dest.writeString(this.rwdStatus);
            dest.writeString(this.displayOutSideStatus);
            dest.writeString(this.rwdTime);
            dest.writeString(this.wdMoney);
            dest.writeString(this.rwdDes);
        }

        public WithdrawBody() {
        }

        protected WithdrawBody(Parcel in) {
            this.rwdMoney = in.readString();
            this.rwdStatus = in.readString();
            this.displayOutSideStatus = in.readString();
            this.rwdTime = in.readString();
            this.wdMoney = in.readString();
            this.rwdDes = in.readString();
        }

        public static final Creator<WithdrawBody> CREATOR = new Creator<WithdrawBody>() {
            @Override
            public WithdrawBody createFromParcel(Parcel source) {
                return new WithdrawBody(source);
            }

            @Override
            public WithdrawBody[] newArray(int size) {
                return new WithdrawBody[size];
            }
        };

        @Override
        public String toString() {
            return "WithdrawBody{" +
                    "rwdMoney='" + rwdMoney + '\'' +
                    ", rwdStatus='" + rwdStatus + '\'' +
                    ", displayOutSideStatus='" + displayOutSideStatus + '\'' +
                    ", rwdTime='" + rwdTime + '\'' +
                    ", wdMoney='" + wdMoney + '\'' +
                    ", rwdDes='" + rwdDes + '\'' +
                    '}';
        }
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.applyAmounts);
        dest.writeString(this.amounts);
        dest.writeString(this.items);
        dest.writeString(this.totalPages);
        dest.writeString(this.pageNo);
        dest.writeTypedList(this.list);
    }

    public QueryWithdrawRecordBean() {
    }

    protected QueryWithdrawRecordBean(Parcel in) {
        super(in);
        this.applyAmounts = in.readString();
        this.amounts = in.readString();
        this.items = in.readString();
        this.totalPages = in.readString();
        this.pageNo = in.readString();
        this.list = in.createTypedArrayList(WithdrawBody.CREATOR);
    }

    public static final Creator<QueryWithdrawRecordBean> CREATOR = new Creator<QueryWithdrawRecordBean>() {
        @Override
        public QueryWithdrawRecordBean createFromParcel(Parcel source) {
            return new QueryWithdrawRecordBean(source);
        }

        @Override
        public QueryWithdrawRecordBean[] newArray(int size) {
            return new QueryWithdrawRecordBean[size];
        }
    };

    @Override
    public String toString() {
        return "QueryWithdrawRecordBean{" +
                "applyAmounts='" + applyAmounts + '\'' +
                ", amounts='" + amounts + '\'' +
                ", items='" + items + '\'' +
                ", totalPages='" + totalPages + '\'' +
                ", pageNo='" + pageNo + '\'' +
                ", list=" + list +
                '}';
    }
}
